<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html 
      xmlns:f="http://java.sun.com/jsf/core" 
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets" >
<f:metadata>
	<f:viewParam name="mod_donneur" value="#{gestionDonneur.modifDonneur}"/>
    <f:event type="preRenderView" listener="#{gestionDonneur.chargeDonneur}"/>	
</f:metadata>

<h:head></h:head>
	  
<ui:composition template="contenu.xhtml"><ui:define name="droite">
<h:outputText value="#{msg['modificationDonneur.titreEntete']}"/><br/><br/>
<h:form>
<table border="1" cellspacing="0" cellpadding="2">
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumeroHematie']}"/></th>
    <td>
      <h:inputText id="numeroHematie"
      	             required="true"
      	             value="#{gestionDonneur.numeroHematie}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="numeroHematie"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumeroDonneur']}"/></th>
    <td>
      <h:inputText id="numeroDonneur"
      	             required="true"
      	             value="#{gestionDonneur.numeroDonneur}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="numeroDonneur"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNomDonneur']}"/></th>
    <td>
      <h:inputText id="nomDonneur"
      	             required="true"
      	             value="#{gestionDonneur.nomDonneur}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="nomDonneur"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelPrenom']}"/></th>
    <td>
      <h:inputText id="prenom"
      	             required="true"
      	             value="#{gestionDonneur.prenom}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="prenom"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelDateNais']}"/></th>
    <td>
      <h:inputText id="dateNais"
      	             required="true"
      	             value="#{gestionDonneur.dateNais}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="dateNais"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCivilite']}"/></th>
    <td>
      <h:selectOneMenu id="civilite" value="#{gestionDonneur.civilite}">
        <f:selectItem itemValue="1" itemLabel="#{msg['donneur.civiliteMme']}"/>
        <f:selectItem itemValue="2" itemLabel="#{msg['donneur.civiliteMlle']}"/>
        <f:selectItem itemValue="3" itemLabel="#{msg['donneur.civiliteM']}"/>
      </h:selectOneMenu>       
    </td>
    <td><h:message for="civilite"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelAdresseLigne1']}"/></th>
    <td>
      <h:inputText id="adresseLigne1D"
      	             value="#{gestionDonneur.adresseLigne1}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelAdresseLigne2']}"/></th>
    <td>
      <h:inputText id="adresseLigne2D"
      	             value="#{gestionDonneur.adresseLigne2}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCodePostal']}"/></th>
    <td>
      <h:inputText id="codePostalD"
      	             required="true"
      	             value="#{gestionDonneur.codePostal}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="codePostalD"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelVille']}"/></th>
    <td>
      <h:inputText id="villeD"
      	             required="true"
      	             value="#{gestionDonneur.ville}"
      	             validator="#{gestionDonneur.verificationChampVide}"/>
    </td>
    <td><h:message for="villeD"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumDomicile']}"/></th>
    <td>
      <h:inputText id="numDomicile"
      	             value="#{gestionDonneur.numDomicile}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumTravail']}"/></th>
    <td>
      <h:inputText id="numTravail"
      	             value="#{gestionDonneur.numTravail}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelNumPortable']}"/></th>
    <td>
      <h:inputText id="numPortable"
      	             value="#{gestionDonneur.numPortable}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelEmail']}"/></th>
    <td>
      <h:inputText id="email"
      	             value="#{gestionDonneur.email}"/>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelCentrePrefere']}"/></th>
    <td>
      <h:selectOneMenu id="centrePrefere" value="#{gestionDonneur.centrePrefere}">
        <f:selectItems value="#{gestionDonneur.listeDesCentres()}" var="centre" itemValue="#{centre.idCentre}"/>
      </h:selectOneMenu> 
    </td>
    <td><h:message for="centrePrefere"/></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelGroupe']}"/></th>
    <td>
       <h:selectOneRadio value="#{gestionDonneur.groupe}">
         <f:selectItem itemValue="1" itemLabel="O&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="2" itemLabel="A&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="3" itemLabel="B&nbsp;&nbsp;&nbsp;"/>
         <f:selectItem itemValue="4" itemLabel="AB&nbsp;&nbsp;&nbsp;"/>
       </h:selectOneRadio>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelRhesus']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="D"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.d_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="C"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.c_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="c"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.c_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="E"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.e_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="e"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.e_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Cw"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.cw}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelKell']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="K"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.k_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="k"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.k_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Kpa"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.kpa}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Kpb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.kpb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelDuffy']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Fya"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.fya}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Fyb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.fyb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelKidd']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Jka"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.jka}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Jkb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.jkb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelLewis']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Lea"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.lea}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Leb"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.leb}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelMns']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="M"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.m_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="N"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.n_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="S"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.s_up}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="s"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.s_down}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelP']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="P1"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.p1}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelLutheran']}"/></th>
    <td>
      <table align="center">
        <tr>
          <td><h:outputText value="Lua"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.lua}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
        <tr>
          <td><h:outputText value="Lub"/>&nbsp;:&nbsp;&nbsp;&nbsp;</td>
          <td>
            <h:selectOneRadio value="#{gestionDonneur.lub}">
              <f:selectItem itemValue="true" itemLabel="+&nbsp;&nbsp;&nbsp;"/>
              <f:selectItem itemValue="false" itemLabel="-&nbsp;&nbsp;&nbsp;"/>
            </h:selectOneRadio>
          </td>
        </tr>
      </table>
    </td>
    <td></td>
  </tr>
  <tr>
    <th align="left"><h:outputText value="#{msg['donneur.labelFreqDons']}"/></th>
    <td>
      <h:inputText id="freqDons"
      	             value="#{gestionDonneur.freqDons}"/>
    </td>
    <td></td>
  </tr>  
  <tr>
    <th>&nbsp;</th>
    <td>
      <h:commandButton action="#{gestionDonneur.verification_modification}" value="#{msg['boutonEnregistrerModification']}"/>
      <h:commandButton action="#{gestionDonneur.cancel_modification}" value="#{msg['boutonAnnulerModification']}"/>
    </td>
    <td></td>
  </tr>
</table>
</h:form>
</ui:define></ui:composition>
</html>